package com.jgzx.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 价格信息VO
 * @author libo
 * @date 2021/6/17 16:43
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class PriceTaxRateNumVO {

    /** 物料编码ID */
    private Long materiel_id;

    /** 主数量 */
    private BigDecimal nnum;

    /** 无税单价 */
    private BigDecimal orig_price;

    /** 含税单价 */
    private BigDecimal tax_price;

    /** 税率[必须是小数] */
    private BigDecimal tax_rate;

    /** 无税金额 */
    private BigDecimal orig_amount;

    /** 含税金额 价税合计 */
    private BigDecimal tax_amount;

    /** 税额 */
    private BigDecimal tax;

    /** 换算系数 */
    private BigDecimal scalefactor;

    /** 辅助无税单价 */
    private BigDecimal f_orig_price;

    /** 辅助含税单价 */
    private BigDecimal f_tax_price;

    /** 辅助数量 */
    private BigDecimal f_num;

    /** 辅助无税金额 */
    private BigDecimal f_orig_amount;

    /** 辅助价税合计 */
    private BigDecimal f_tax_amount;

    public PriceTaxRateNumVO(Long materiel_id, BigDecimal nnum, BigDecimal orig_price, BigDecimal tax_price, BigDecimal tax_rate, BigDecimal orig_amount, BigDecimal tax_amount, BigDecimal tax) {
        this.materiel_id = materiel_id;
        this.nnum = nnum;
        this.orig_price = orig_price;
        this.tax_price = tax_price;
        this.tax_rate = tax_rate;
        this.orig_amount = orig_amount;
        this.tax_amount = tax_amount;
        this.tax = tax;
    }

    public PriceTaxRateNumVO(BigDecimal f_orig_price, BigDecimal f_num, BigDecimal scalefactor, BigDecimal tax_rate) {
        this.f_orig_price = f_orig_price;
        this.f_num = f_num;
        this.scalefactor = scalefactor;
        this.tax_rate = tax_rate;
    }
}
